package com.cq.androidtools.jetpack.livedata

import android.widget.TextView
import androidx.activity.viewModels
import com.cq.androidtools.databinding.ActivityLivedataBinding
import com.cq.androidtools.jetpack.databinding.DataBindingActivity
import dagger.hilt.android.AndroidEntryPoint

/**
 * 作者: CQ
 * 日期: 2022-01-21
 * 说明:
 */
@AndroidEntryPoint
class LiveDataActivity : DataBindingActivity<ActivityLivedataBinding>() {
     val liveDataViewModel : LiveDataViewModel by viewModels()
    val tex = TextView(this)
    override fun ActivityLivedataBinding.initBinding() {


        tex.setOnClickListener {

        }
    }

    private fun ini(){
        liveDataViewModel.getName().observe(this, {

        })

    }



}